import React from "react";
import { View, Text, Image } from "react-native";
import styles from "./styles";

import noOrderImg from "../../../assets/images/nodata.png";

function NoDataPlaceholder({ text }) {
  return (
    <View style={styles.imgView}>
      <Image source={noOrderImg} style={{ width: 136, height: 86 }} />
      <Text style={styles.imgText}>{text || "很抱歉，暂无数据"}</Text>
    </View>
  );
}

export default NoDataPlaceholder;
